import { request, config } from 'utils'
const { api } = config
const { testResult,specificResult } = api

export async function queryTop (params) {
  return request({
    url: testResult+'getTopTenResult/',
    method: 'get',

  })
}

export async function query (params) {
  return request({
    url: testResult+'getAllResult/',
    method: 'get',
    data: {
      page:Number(params.page)||1,
      limit:10
    },
  })
}

export async function queryspecific (params) {
  return request({
    url: specificResult,
    method: 'get',
    data: {
      result_id:params.result_id
    },
  })
}


